package com.cloudloan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudloan.common.R;
import com.cloudloan.entity.Book;

import java.util.Map;

/**
 * <h3>cloudLoan</h3>
 * <p></p>
 *
 * @author zxj
 * @since 2024-08-26 11:19:19
 */
public interface BookService extends IService <Book>{
    /**
     * 修改或者保存书籍信息
     * @param book
     * @return
     */
    R inserOrUpdateBook(Book book);

    /**
     * 查询详细信息
     * @param id
     * @return
     */
    R getBookById(Long id);

    /**
     * 首页书籍展示
     * @param map
     * @return
     */
    R getBookTypeAll(Map<String, Object> map);
}
